package net.csdn.business.common.domain.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import net.csdn.business.common.constant.CommonConstants;

import java.io.Serializable;

/**
 * @author likun
 * @date 2022/6/9 18:22
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
public class StatVo implements Serializable {
    private String objectId;

    private String key;

    private Integer value;

    public StatVo(String key) {
        this.key = key;
        this.value = CommonConstants.INT_ZERO;
    }

    public StatVo(String key, Integer value) {
        this.key = key;
        this.value = value;
    }
}
